package com.hnevc.xiewenguang;

/**
 * 计算矩形的面积 长*宽
 */
public class Example6 {
    public static void main(String[] args) {
        double result = getArea(3, 4);
        System.out.println(result);

    }

    //获取计算矩形的面积方法为 getArea()
    public static double getArea(double x, double y) {
        double temp = x * y;
        return temp;
    }
}


